home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1991-12-03 | 281 b | 15 lines |
- Procedure YESNO
- ' By John Smit
- ' Waits for a 'Y' or an 'N' to be input
- ' value returned in param$
- '
- Z$=""
- Repeat
- Z$=Inkey$
- Z$=Upper$(Z$)
- Until Asc(Z$)=78 or Asc(Z$)=89
- End Proc[Z$]
- '
- ' example
- YESNO
- If Param$="Y" Then Print "YES" Else Print "NO"